const {DB_HOST, DB_USER, DB_PASSWORD, DB_DATABASE} = require('../config/config')
const mysql = require('mysql2')
const db = mysql.createPool({
    host:DB_HOST,
    user:DB_USER,
    password:DB_PASSWORD,
    database:DB_DATABASE
})
module.exports = db